﻿using System;
using System.Collections.Generic;
using System.Text;
using IService.Business.Manager;
using IService.Data;

namespace IService.Business
{
	public static class DTVBusiness
	{
		private static UserManager b_userManager = null;
		public static UserManager UserManager
		{
			get { return DTVBusiness.b_userManager; }
		}

		private static NewsManager b_newsManager = null;
		public static NewsManager NewsManager
		{
			get { return DTVBusiness.b_newsManager; }
		}

		private static TypeManager b_typeManager = null;
		public static TypeManager TypeManager
		{
			get { return DTVBusiness.b_typeManager; }
		}

		private static AdminManager b_adminmanager = null;
		public static AdminManager AdminManager
		{
			get { return DTVBusiness.b_adminmanager; }
		}

        private static SupplyPurchaseManager b_SupplyPurchaseManager = null;
        public static SupplyPurchaseManager SupplyPurchaseManager
        {
            get { return DTVBusiness.b_SupplyPurchaseManager; }
        }

        private static ActivityManager b_activityManager = null;
        public static ActivityManager ActivityManager
        {
            get { return DTVBusiness.b_activityManager; }
        }

        private static ActivityApplyManager b_activityApplyManager = null;
        public static ActivityApplyManager ActivityApplyManager
        {
            get { return DTVBusiness.b_activityApplyManager; }
        }

        private static ActivityOpinionManager b_activityOpinionManager = null;
        public static ActivityOpinionManager ActivityOpinionManager
        {
            get { return DTVBusiness.b_activityOpinionManager; }
        }

        private static ProductsManager b_ProductsManager = null;
        public static ProductsManager ProductsManager
        {
            get { return DTVBusiness.b_ProductsManager; }
        }

		public static void Initialize(string binPath)
		{
			DTVData.Initialize(binPath);

			b_userManager = new UserManager();
			b_newsManager = new NewsManager();
			b_adminmanager = new AdminManager();
			b_typeManager = new TypeManager();
            b_SupplyPurchaseManager = new SupplyPurchaseManager();
            b_activityManager = new ActivityManager();
            b_activityApplyManager = new ActivityApplyManager();
            b_activityOpinionManager = new ActivityOpinionManager();
            b_ProductsManager = new ProductsManager();
		}
	}
}
